<template>
  <div class="radio" :style="{'height':data.height*40 + (data.height-1)*8 + 'px'}">
    <div class="name"  :style="{'line-height':data.height*40 + (data.height-1)*8 + 'px'}">单选框 :</div>
    <div class="radio-box" :style="{'margin-top':(data.height*40 + (data.height-1)*8 -30)/2 - 5 + 'px'}">
      <el-radio v-model="radio" label="1">备选项</el-radio>
      <el-radio v-model="radio" label="2">备选项</el-radio>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    data: {
      type: Object
    }
  },
  data() {
    return {
      radio:'1'
    }
  },
  computed: {},
  methods: {},
  mounted() {}
}

</script>
<style lang="less" scoped>
.radio {
  width: 100%;
  display: flex;
  border: 1px dashed #000;
  box-sizing: border-box;
  border-radius: 6px;
  line-height: 38px;
  .name {
    padding: 0 10px;
    white-space: nowrap;
  }
  .radio-box {
    flex: 1;
    padding-right: 10px;
    display: flex;
    overflow: hidden;
    .el-radio{
      flex:1;
      text-align: center;
    }
  }
}

</style>
